package org.apache.shardingsphere.elasticjob.lite.api.bootstrap.jobtset;

import org.apache.shardingsphere.elasticjob.api.ShardingContext;
import org.apache.shardingsphere.elasticjob.simple.job.SimpleJob;



public class TestJob implements SimpleJob {
    @Override
    public void execute(ShardingContext shardingContext) {
//        try {
//            Thread.sleep(50000);
//        } catch (InterruptedException e) {
//
//        }
        switch (shardingContext.getShardingItem()) {
            case 0:
                System.out.println(shardingContext.getShardingParameter());
                break;
            case 1:
                System.out.println(shardingContext.getShardingParameter());
                break;
        }

    }


}
